import { http } from '@/utils/request'
import type { IPublicitySetParams, IPublicitySetRes } from './type'

const prefix = '/publicity'

/**
 * 设置公示配置
 * @param params 公示配置参数
 * @returns 设置结果
 */
export function setPublicitySetting(params: IPublicitySetParams) {
	return http.post<IPublicitySetRes>(`${prefix}/set`, null, { params })
}
